package com.muyi.biling.rest;

import com.muyi.biling.bean.AppInfo;
import com.muyi.biling.util.Constants;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by developer on 18-1-24.
 */

public interface Api {

    @GET
    Observable<ApiResult> testHttp(@Header("Ticket") String ticket);

    @POST(Constants.API.GET_APP_INFO)
    Observable<AppInfo> getAppInfo(@Header("Ticket") String ticket,
                                   @Query("AppOS") String appOS,
                                   @Query("RegistrationId") String deviceId);

}
